package cn.neusoft.feignClients.fallback;

import cn.neusoft.domain.Allocate;
import cn.neusoft.domain.Task;
import cn.neusoft.exception.AppExceptionCodeMsg;
import cn.neusoft.feignClients.DeliveryFeignClient;
import cn.neusoft.query.AllocationQuery;
import cn.neusoft.vo.ResultBean;
import org.springframework.stereotype.Component;

/**
 * @Description:TODO
 * @Author:邢旭升
 * @Date:2023/7/4 上午 10:39
 **/
@Component
public class DeliveryFeignClientFallback implements DeliveryFeignClient {
    @Override
    public ResultBean updateAllocate(Allocate allocate) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }

    @Override
    public ResultBean FindAllocateByPages(AllocationQuery query) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }

    @Override
    public ResultBean findReturnedAllocate(AllocationQuery query) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }

    @Override
    public ResultBean AddAllocateAnyway(Allocate allocate) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }

    @Override
    public ResultBean update(Task task) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }

    @Override
    public ResultBean AddAllocate(Allocate allocate) {
        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }
}
